import requests


class Ihrm_Login_Api(object):
    @classmethod
    def login_api(cls,login_data):
        res = requests.post(url='https://heimahr.itheima.net/api/sys/login',
                           json=login_data)
        return res


if __name__=='__main__':
    login_data={"mobile": "13800000002",
                "password": "hm#qd@23!",
                "isAgree": 'true'}
    req=Ihrm_Login_Api.login_api(login_data)
    print(req.json())
